package com.zlc.platform.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zlc.common.core.user.model.entity.MayanPlatUser;
import com.zlc.common.core.user.model.vo.MayanPlatUserVo;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 在线用户
 */
@Data
@Accessors(chain = true)
public class OnlineEntity extends MayanPlatUserVo {

    /**
     * 在线小时
     */
    private Integer onlineHour;

    /**
     * 登录时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date loginTime;


}
